package com.dtsheep.elasticsearch.es.document;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * User
 *
 * <p>
 * </p>
 *
 * @author chuanbai
 * @date 2024/5/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "user")
public class UserDocument {

    @Id
    private String id;

    private String name;

    private Integer age;

    private String sex;
}
